/*
 * @Author: szx
 * @Date: 2021-12-12 18:55:11
 * @LastEditTime: 2021-12-12 19:00:56
 * @Description:
 * @FilePath: \leetcode\700-799\709\709.js
 */
/**
 * @param {string} s
 * @return {string}
 */
var toLowerCase = function (s) {
    const arr = s.split('');
    for (let i = 0; i < arr.length; i++) {
        const n = arr[i].charCodeAt();
        if (n >= 65 && n <= 90) {
            arr[i] = String.fromCharCode(n + 32);
        }
    }
    return arr.join('');
};
console.log(toLowerCase('Hello'));
